﻿using UnityEngine;
using System.Collections;
public class FGameView{
	private static IGameView gameview;
	public static void Clear(){
		gameview = null;
	}
	static public IGameView getView(){
		return gameview;
	}
	static public IGameView Create(System.Type type){
		GameObject viewobj = new GameObject ("View");
		gameview = viewobj.AddComponent (type) as IGameView;
		gameview.Init ();
		return gameview;
	}
}
public enum ViewUIPanelDepth{
	BG = 0,
	Down = 3,
	Down1 = 4,
	Down2 = 5,
	Down3 = 6,
	Down4 = 7,
	Down5 = 8,
	Middle = 10,
	Up = 15,
	Top = 20,
	Count = 21,
}
public interface IGameView{
	/// <summary>
	/// 初始化只允许初始化自身内部数据
	/// </summary>
	void Init();
	GameObject getObj ();
}
